package net.roobook.gateway.configure;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @Author Roobook
 * @description 网关配置类
 * @date 2022/4/7
 */
@EnableWebSecurity
public class RoobookGatewaySecurityConfigure extends WebSecurityConfigurerAdapter {
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        // 关闭了csrf功能，否则会报csrf相关异常
        http.csrf().disable();
    }
}